package com.portal.web.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.portal.model.system.Menu;


/**
 * 主界面
 * @author liu.qiao
 *
 */
public class Frame extends BaseAction {
	private static final long serialVersionUID = 1L;
	private List<Menu> menulist;

    public String execute() throws Exception {
    	try {
    		menulist = this.getServiceContainer().getMenuService().findMenu();
    		HttpServletRequest request = ServletActionContext.getRequest();
    		request.setAttribute("menulist", menulist);
		} catch (Exception e) {
			e.printStackTrace();
			return ERROR;
		}
        return SUCCESS;
    }
}
